3.1.65 \(\int \frac {(a+b x^2) (A+B x+C x^2+D x^3)}{x^4} \, dx\)

Optimal. Leaf size=54 \[ -\frac {a C+A b}{x}-\frac {a A}{3 x^3}+\log (x) (a D+b B)-\frac {a B}{2 x^2}+b C x+\frac {1}{2} b D x^2 \]

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.038, Rules used = {1802} \begin {gather*} -\frac {a C+A b}{x}-\frac {a A}{3 x^3}+\log (x) (a D+b B)-\frac {a B}{2 x^2}+b C x+\frac {1}{2} b D x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*x^2)*(A + B*x + C*x^2 + D*x^3))/x^4,x]

[Out]

-(a*A)/(3*x^3) - (a*B)/(2*x^2) - (A*b + a*C)/x + b*C*x + (b*D*x^2)/2 + (b*B + a*D)*Log[x]

Rule 1802

Int[(Pq_)*((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*Pq*(a + b*x
^2)^p, x], x] /; FreeQ[{a, b, c, m}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rubi steps

\begin {align*} \int \frac {\left (a+b x^2\right ) \left (A+B x+C x^2+D x^3\right )}{x^4} \, dx &=\int \left (b C+\frac {a A}{x^4}+\frac {a B}{x^3}+\frac {A b+a C}{x^2}+\frac {b B+a D}{x}+b D x\right ) \, dx\\ &=-\frac {a A}{3 x^3}-\frac {a B}{2 x^2}-\frac {A b+a C}{x}+b C x+\frac {1}{2} b D x^2+(b B+a D) \log (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 55, normalized size = 1.02 \begin {gather*} \frac {-a C-A b}{x}-\frac {a A}{3 x^3}+\log (x) (a D+b B)-\frac {a B}{2 x^2}+b C x+\frac {1}{2} b D x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*x^2)*(A + B*x + C*x^2 + D*x^3))/x^4,x]

[Out]

-1/3*(a*A)/x^3 - (a*B)/(2*x^2) + (-(A*b) - a*C)/x + b*C*x + (b*D*x^2)/2 + (b*B + a*D)*Log[x]

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a+b x^2\right ) \left (A+B x+C x^2+D x^3\right )}{x^4} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[((a + b*x^2)*(A + B*x + C*x^2 + D*x^3))/x^4,x]

[Out]

IntegrateAlgebraic[((a + b*x^2)*(A + B*x + C*x^2 + D*x^3))/x^4, x]

________________________________________________________________________________________

fricas [A]  time = 0.75, size = 55, normalized size = 1.02 \begin {gather*} \frac {3 \, D b x^{5} + 6 \, C b x^{4} + 6 \, {\left (D a + B b\right )} x^{3} \log \relax (x) - 3 \, B a x - 6 \, {\left (C a + A b\right )} x^{2} - 2 \, A a}{6 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(D*x^3+C*x^2+B*x+A)/x^4,x, algorithm="fricas")

[Out]

1/6*(3*D*b*x^5 + 6*C*b*x^4 + 6*(D*a + B*b)*x^3*log(x) - 3*B*a*x - 6*(C*a + A*b)*x^2 - 2*A*a)/x^3

________________________________________________________________________________________

giac [A]  time = 0.43, size = 50, normalized size = 0.93 \begin {gather*} \frac {1}{2} \, D b x^{2} + C b x + {\left (D a + B b\right )} \log \left ({\left | x \right |}\right ) - \frac {3 \, B a x + 6 \, {\left (C a + A b\right )} x^{2} + 2 \, A a}{6 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(D*x^3+C*x^2+B*x+A)/x^4,x, algorithm="giac")

[Out]

1/2*D*b*x^2 + C*b*x + (D*a + B*b)*log(abs(x)) - 1/6*(3*B*a*x + 6*(C*a + A*b)*x^2 + 2*A*a)/x^3

________________________________________________________________________________________

maple [A]  time = 0.00, size = 51, normalized size = 0.94 \begin {gather*} \frac {D b \,x^{2}}{2}+B b \ln \relax (x )+C b x +D a \ln \relax (x )-\frac {A b}{x}-\frac {C a}{x}-\frac {B a}{2 x^{2}}-\frac {A a}{3 x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)*(D*x^3+C*x^2+B*x+A)/x^4,x)

[Out]

1/2*b*D*x^2+b*C*x-1/3*A*a/x^3-1/2*B*a/x^2-1/x*A*b-1/x*a*C+B*b*ln(x)+D*ln(x)*a

________________________________________________________________________________________

maxima [A]  time = 1.33, size = 49, normalized size = 0.91 \begin {gather*} \frac {1}{2} \, D b x^{2} + C b x + {\left (D a + B b\right )} \log \relax (x) - \frac {3 \, B a x + 6 \, {\left (C a + A b\right )} x^{2} + 2 \, A a}{6 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(D*x^3+C*x^2+B*x+A)/x^4,x, algorithm="maxima")

[Out]

1/2*D*b*x^2 + C*b*x + (D*a + B*b)*log(x) - 1/6*(3*B*a*x + 6*(C*a + A*b)*x^2 + 2*A*a)/x^3

________________________________________________________________________________________

mupad [B]  time = 1.15, size = 50, normalized size = 0.93 \begin {gather*} \frac {b\,x^2\,D}{2}+a\,\ln \relax (x)\,D+C\,b\,x-\frac {A\,a}{3\,x^3}-\frac {A\,b}{x}-\frac {B\,a}{2\,x^2}-\frac {C\,a}{x}+B\,b\,\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a + b*x^2)*(A + B*x + C*x^2 + x^3*D))/x^4,x)

[Out]

(b*x^2*D)/2 + a*log(x)*D + C*b*x - (A*a)/(3*x^3) - (A*b)/x - (B*a)/(2*x^2) - (C*a)/x + B*b*log(x)

________________________________________________________________________________________

sympy [A]  time = 1.01, size = 54, normalized size = 1.00 \begin {gather*} C b x + \frac {D b x^{2}}{2} + \left (B b + D a\right ) \log {\relax (x )} + \frac {- 2 A a - 3 B a x + x^{2} \left (- 6 A b - 6 C a\right )}{6 x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)*(D*x**3+C*x**2+B*x+A)/x**4,x)

[Out]

C*b*x + D*b*x**2/2 + (B*b + D*a)*log(x) + (-2*A*a - 3*B*a*x + x**2*(-6*A*b - 6*C*a))/(6*x**3)

________________________________________________________________________________________